<?php

/**
 * 网站后台路由 -- 管理员组
 */

Route::group(['middleware'=>'adminAuth', 'namespace' => 'Admin', 'prefix' => 'admin/usergroup/'],function() {
	//列表
	Route::get('datalist', 'UserGroupController@listData');
	Route::get('datatablelist', 'UserGroupController@bootstrapTableList');
	//新增
	Route::get('addview', 'UserGroupController@addDataView');
	Route::post('addsave', 'UserGroupController@toAddData');
	//修改
	Route::get('editview/{id}', 'UserGroupController@updateDataView');
	Route::post('editsave/{id}', 'UserGroupController@toUpdateData');
	//状态修改
	Route::get('status/{id}/{status?}', 'UserGroupController@toStatusData');
	//删除
	Route::delete('destroy', 'UserGroupController@toDelData');
	
});

